package com.aha.dataanalyzeandview.mapper;

import com.aha.dataanalyzeandview.entity.stock.StockBaseFinancialDataEntity;
import com.aha.dataanalyzeandview.entity.stock.StockDetailsInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/******************************
 * Project:           data-analyze-and-view
 * FileName:          ValueRecommendMapper.java
 * ClassName:         ValueRecommendMapper
 * Time:              2020/8/17 23:40
 * Version:           1.00
 * Author:            努力就是魅力
 * Description:       TODO
 ******************************/
@Mapper
public interface ValueRecommendMapper {


    /**
     * 查询股票详细信息
     * @param map
     * @return
     */
    public List<StockDetailsInfoEntity> queryStockDetailsAndMainIndexByCondition(@Param("map") Map<String, Object> map );



    /**
     * 从 Excel 中导入 股票 信息
     * @param stockDetailsInfoEntities
     * @return
     */
    public Integer batchAddStockMainInfo(  List<StockDetailsInfoEntity> stockDetailsInfoEntities);


    /**
     * 插入 股票 信息
     * @param stockDetailsInfoEntity
     * @return
     */
    public Integer addStockMainInfo(  StockDetailsInfoEntity stockDetailsInfoEntity);






    /**
     * 插入 股票基本财务 信息
     * @param stockBaseFinancialDataEntity
     * @return
     */
    public Integer addBasicFinancialData(  StockBaseFinancialDataEntity stockBaseFinancialDataEntity);


    /**
     * 查询股票 主要财务信息
     * @param baseFinancialDataEntity
     * @return
     */
    public List<StockBaseFinancialDataEntity> queryStockBaseFinancialDataCondition(StockBaseFinancialDataEntity baseFinancialDataEntity);





































}
